
#ifndef XBEEHANDLERPOINTER_H
#define XBEEHANDLERPOINTER_H

#include "mbed.h"
#include "XBeeResponse.h"

class XBeeHandlerPointer {
private:
    void (*_function)(XBeeResponse*);
    
public:
    XBeeHandlerPointer(void (*function)(XBeeResponse*) = 0);
    
    bool isSet() const;
    void attach(void (*function)(XBeeResponse*) = 0);
    void call(XBeeResponse* xbr) const;
};

#endif